const num = 3;
export const foo2 = num as number;
export const foo3 = 'foo' as string;

const foo = <number>3;

const foo = 3 as number;

const foo = 'foo' as const;

function foo(x: number | undefined): number {
  return x!;
}